package com.szd.qiongyou20.community.pre;

import com.szd.qiongyou20.community.bean.RecommendBean;
import com.szd.qiongyou20.community.modle.LoadCommunityData;
import com.szd.qiongyou20.community.modle.LoadData;
import com.szd.qiongyou20.community.modle.LoadReconListener;
import com.szd.qiongyou20.community.view.ReconDataToView;

/**
 * Created by SZD on 2016/12/29.
 */

public class ReconPre {

    private LoadData mLoadData;
    private ReconDataToView mReconDataToView;

    public ReconPre(ReconDataToView reconDataToView) {
        mReconDataToView = reconDataToView;
        mLoadData = new LoadCommunityData();
    }

    public void loadDataToView() {
        mLoadData.ReconData(new LoadReconListener() {
            @Override
            public void loadSuccess(RecommendBean recommendBean) {
                mReconDataToView.dataToView(recommendBean);
            }

            @Override
            public void loadFaile(String string) {

            }
        });
    }
}
